class MusicPlayer (var currmusicl: String, var musicallist: List[String], var musicalmodel: String){
  def addmusical(music:String): Unit = {
    musicallist = musicallist :+ music
  }
  def deletemusical(music:String): Unit = {
    musicallist = musicallist.filter(_ != music)
  }
  def changemodel(): Unit = {
    System.out.println("播放音乐")
  }
}
/*3.设计一个音乐播放器类MusicPlayer，包括属性有音乐列表、当前播放的音乐、播放模式等，
并能够实现添加音乐、删除音乐、播放音乐等方法。（随意设计）*/